import axios from '@u/request'
// 请求商品分类列表接口
const fetchCateLists = (params) => {
  return axios.get('/cateLists', { params })
}
// 新增商品分类
const addCate = (params) => {
  return axios.post('/addCate', params)
}
// 获取分类详情
const fetchCateDetail = (params) => {
  return axios.get('/getCateDetail', {params})
}
// 修改商品分类
const updateCate = (params) => {
  return axios.put('/updateCate', params)
}
export {
  fetchCateLists,
  addCate,
  fetchCateDetail,
  updateCate
}